package com.csdj.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.csdj.server.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZouLi
 * @since 2022-12-12
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Department> getAllDepartmentById(@Param("pid") Integer pid);

    /**
     * @Description: 添加部门
     * @Param [dep]
     * @Return void
     * @Throws
     **/
    void addDep(Department dep);

    void delDep(Department dep);
}
